package com.koron.common.core.business.log.entity.po;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * (LogOperate)实体类
 *
 * @author zhouj
 * @since 2022-06-08 11:53:55
 */
@Data
@ApiModel("操作日志记录")
public class LogOperatePo implements Serializable {

    private static final long serialVersionUID = -70656861313818814L;

    @ApiModelProperty(value = "主键")
    private String id;

    @ApiModelProperty(value = "操作人账户")
    private String account;

    @ApiModelProperty(value = "本机IP地址")
    private String localIp;

    @ApiModelProperty(value = "来访IP地址")
    private String ip;

    @ApiModelProperty(value = "状态")
    private String status;

    @ApiModelProperty(value = "访问时间")
    private Date inTime;

    @ApiModelProperty(value = "接口耗费时间（ms）")
    private Double useTime;

    @ApiModelProperty(value = "API接口路径")
    private String methodPath;

    @ApiModelProperty(value = "请求方法名称")
    private String methodName;

    @ApiModelProperty(value = "POST（添加）、PUT（修改）、GET（获取）、DELETE（删除）")
    private String type;

    @ApiModelProperty(value = "请求路径")
    private String requestUrl;

    @ApiModelProperty(value = "请求参数(param||boby)")
    private String requestParam;

    @ApiModelProperty(value = "请求头参数")
    private String requestHeader;

    @ApiModelProperty(value = "请求体参数")
    private String requestBoby;

    @ApiModelProperty(value = "响应内容")
    private String response;

    @ApiModelProperty(value = "异常信息")
    private String exMessage;

    @ApiModelProperty(value = "数据所属子应用")
    private String appid;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "代理人账号")
    private String agent;

    @ApiModelProperty(value = "应用名称")
    private String applicationName;

}